package org.lk.reggie.controller;

import org.lk.reggie.common.R;
import org.lk.reggie.entity.Orders;
import org.lk.reggie.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrdersController
{

    @Autowired
    private OrdersService ordersService;

    @PostMapping("/submit")
    public R<String> submitOrder(@RequestBody Orders orders)
    {
        ordersService.mySubmit(orders);
        return R.success("success");
    }
    public void aaa(){}
}
